//    Copyright 2009 Nathan Michaels
//
//    This file is part of jen-breakout.
//
//    jen-breakout is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 2 of the License, or
//    (at your option) any later version.
//
//    jen-breakout is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with jen-breakout.  If not, see <http://www.gnu.org/licenses/>.

#ifndef __LEVELS_H__
#define __LEVELS_H__
#include "breakout.h"

typedef struct
{
    int firstRow; // Index of first row with nonzero data.
    int lastRow; // Index of last row with nonzero data.
    int level[BRICK_ROWS][BRICK_COLS];
} level_t, *level_ptr_t;

// Returns NULL when you hit the last level. Don't forget to call it again!
level_ptr_t NextLevel (void);
void ResetLevels (void);

#endif
